# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-craft
pkgver=0_git20230109
pkgrel=0
_commit="fce88570e83003b24cce34085928c890adae141d"
pkgdesc="a simple Minecraft clone written in C using modern OpenGL"
url="https://github.com/libretro/Craft"
arch="all"
license="MIT"
makedepends="mesa-dev"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/Craft/archive/$_commit.tar.gz"
builddir="$srcdir/Craft-$_commit"
options="!check" # No tests

build() {
	make -f Makefile.libretro
}

package() {
	install -Dm644 craft_libretro.so "$pkgdir"/usr/lib/libretro/craft_libretro.so
}

sha512sums="
59711160dad973c509310f1b85a650336fe6ec7d0b86136adf1dbfcdc0f8e086442dac1e37b11b3172de204e09b031d08ef0fc956967c9fc1ab94c6afd4249d3  libretro-craft-fce88570e83003b24cce34085928c890adae141d.tar.gz
"
